<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Garden')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-garden_name" class="form-control" name="garden_name" type="text" value="{$row.garden_name|htmlentities}" disabled>
        </div>
    </div>

    <div class="form-group">
        <label for="c-building-number" class="control-label col-xs-12 col-sm-2">{:__('Building')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-building-number" class="form-control" name="building_name" type="text" value="{$row.building_name|htmlentities}" disabled>
        </div>
    </div>

    <div class="form-group">
        <label for="c-floor" class="control-label col-xs-12 col-sm-2">{:__('Floor')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-floor" class="form-control" name="floor" type="text" value="{$row.floor|htmlentities}楼" disabled>
        </div>
    </div>

    <div class="form-group">
        <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-number" class="form-control" name="row[number]" type="text" value="{$row.number|htmlentities}" disabled>
        </div>
    </div>

    <div class="form-group">
        <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}" data-rule="required">
        </div>
    </div>

    <div class="form-group">
        <label for="c-dorm-type" class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[type]', $typeData, $row['type'], ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
        </div>
    </div>

    <div class="form-group">
        <label for="c-dorm-type" class="control-label col-xs-12 col-sm-2">{:__('Category')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[category]', $categoryData, $row['category'], ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
        </div>
    </div>

    <div class="form-group">
        <label for="c-bed-count" class="control-label col-xs-12 col-sm-2">{:__('Bed Count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bed-count" class="form-control" name="row[bed_count]" type="text" value="{$row.bed_count|htmlentities}" data-rule="required">
        </div>
    </div>

    <div class="form-group">
        <label for="c-price" class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" name="row[price]" type="text" value="{$row.price|htmlentities}" data-rule="required">
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('Save')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
